package com.yungu.swift.lbs.service;

import com.yungu.swift.base.ResponseData;
import com.yungu.swift.lbs.model.param.FenceParam;
import com.yungu.swift.lbs.model.vo.FenceVo;

import java.util.List;

/**
 * 地理围栏服务
 *
 * @author : cuixiuyin
 * @date : 2019/10/9
 */
public interface FenceService {

    /**
     * 新建围栏
     *
     * @param fenceParam
     * @return 高德返回的 gid
     */
    ResponseData<String> addFence(FenceParam fenceParam);

    /**
     * 更新围栏
     *
     * @param fenceParam
     * @return true 更新成功 false 更新失败
     */
    ResponseData<Boolean> updateFence(FenceParam fenceParam);

    /**
     * 删除围栏
     *
     * @param fenceGid
     * @return
     */
    ResponseData<Boolean> deleteFence(String fenceGid);

    /**
     * 围栏监控
     *
     * @param lng
     * @param lat
     * @param diu
     * @return 围栏信息
     */
    ResponseData<List<FenceVo>> statusFence(double lng, double lat, String diu);
}
